package com.huahua.controller;

import com.huahua.mapper.UserMapper;
import com.huahua.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author zzuli_huahua
 * @version 1.0
 * @date 2021/6/3 22:10
 */

@RestController
public class UserController {

    @Autowired
    private UserMapper userMapper;

    @RequestMapping(value = "/queryUserList")
    public  List<User> queryUserList(){

        List<User> userList = userMapper.queryUserList();
        System.out.println(userList);

        return userList;
    }
}
